package com.sixkey.response;

/**
 * ClassName: ResponseEnum
 * Package: com.sixkey.response
 * Description:
 *
 * @Author: @weixueshi
 * @Create: 2023/9/27 - 17:07
 * @Version: v1.0
 */

import lombok.Data;
import lombok.Getter;

/**
 * 响应码
 */
@Getter
public enum ResponseEnum {

    ERROR(401,"请求失败"),
    SUCCESS(200,"请求成功"),
    NEED_LOGIN(402,"需要登录后操作"),
    FAIL(403,"无权限，重新登录"),
    SYSTEM_ERROR(500,"系统错误"),
    USERNAME_EXIST(501, "用户名已存在"),
    PHONE_EXIST(502, "手机号错误！"),
    EMAIL_EXIST(503, "邮箱已存在"),
    REQUIRE_USERNAME(504, "必需填写用户名"),
    FILE_TYPE_ERROR(507, "文件类型错误"),
    USERNAME_NOT_NULL(508, "用户名不能为空"),
    USERID_ERR(513, "ID不合法"),
    PASSWORD_NOT_NULL(510, "密码不能为空"),
    EMAIL_NOT_NULL(511, "邮箱不能为空"),
    PASSWORD_ERROR(505, "密码错误"),
    USER_DELETED(600,"用户已被删除"),
    USERNAME_NOTFOUND(601,"用户名不存在"),
    USER_JINYON(602,"用户已被禁用"),
    NOT_PERMISSION(603,"无权限操作"),
    ROOM_USED(604,"会议室已被使用，无法删除！"),
    ROOM_RESERVATION(605,"会议室处已被预约，无法删除！"),
    MEET_NOT_DELETE(606,"会议正在进行，无法删除！"),
    USER_USED(607,"用户处于启用状态，无法删除！"),
    USER_USED_JINYON(608,"用户处于启用状态，请先禁用！"),
    NOTICE_PUBLISHED(609,"公告处于发布状态，无法删除！"),
    MEET_PASSED_SHENHE(610,"会议处于审核通过状态，请先撤销审核通过！"),
    MEET_PASSED_CHEXIAO(611,"公告处于发布状态，请先撤销！"),
    RESERVATION_TIME(612,"预约时间错误！"),
    LENGTH_NOT_DAY(613,"时长不能超过一天！"),
    MEET_BEGIN(614,"已无法取消！"),
    HAVE_USER(615,"存在用户未删除！"),
    FORBID_USER(616,"非法用户！"),
    RESET_SIGN(617,"请勿重复签到！"),
    SIGN_TIMEOUT(618,"签到超时！"),
    RESERVATION_NOT_FOUND(620,"会议不存在，无法签到！"),
    USER_NORMAL(621,"普通用户无法登录！"),;
    /**
     * 响应返回码
     */
    private final Integer code;
    /**
     * 响应返回消息
     */
    private final String message;

    ResponseEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
